package top.lcpsky.flashcards.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import top.lcpsky.flashcards.entity.Cards;
import top.lcpsky.flashcards.entity.CardsExample;
import top.lcpsky.flashcards.entity.CardsWithBLOBs;

public interface CardsMapper {
    int countByExample(CardsExample example);

    int deleteByExample(CardsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CardsWithBLOBs record);

    int insertSelective(CardsWithBLOBs record);

    List<CardsWithBLOBs> selectByExampleWithBLOBs(CardsExample example);

    List<Cards> selectByExample(CardsExample example);

    CardsWithBLOBs selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CardsWithBLOBs record, @Param("example") CardsExample example);

    int updateByExampleWithBLOBs(@Param("record") CardsWithBLOBs record, @Param("example") CardsExample example);

    int updateByExample(@Param("record") Cards record, @Param("example") CardsExample example);

    int updateByPrimaryKeySelective(CardsWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(CardsWithBLOBs record);

    int updateByPrimaryKey(Cards record);

	/**   
	 * @Title: insertBatch   
	 * @param: @param listob      
	 * @return: void      
	 * @throws   
	 */
	void insertBatch(@Param("lists")List<Map<String,String>> listob);
}